package com.example.lib_login.dataBinding


import android.widget.ImageView
import androidx.databinding.BindingAdapter
import com.example.lib_login.R

object BindAttribute {
    @JvmStatic
    @BindingAdapter("agreementImage")
    fun changeImageSrc(view: ImageView, result:Boolean){
        if(result){
            view.setImageResource(R.drawable.img)
        }else{
            view.setImageResource(R.drawable.img_1)
        }
    }



}